﻿using UnityEngine;
using System.Collections;

namespace edit{
	public class Yes : MonoBehaviour {

		void OnMouseDown() {
			toIndexAfterSec (0.2f);
		}

		void toIndexAfterSec(float s) {
			StartCoroutine (toIndex (s));
		}
		
		// s秒后回到Index
		IEnumerator toIndex(float s) {
			yield return new WaitForSeconds(s);

			Block.hideCountLabel = false;
			Application.LoadLevel("index");
		}
	}
}